//将token存储到localstorage中
/**
 * setToken
 * 将token存储到localstorage中
 * @param {string} token  
 */
export function setToken(token){
  window.localStorage.token = token;
}


/**
 * getToken
 * 获取本地存储的token
 * @returns  token
 */
export function getToken(){
  const token = window.localStorage.token;
  return token;
}

/**
 * removeToken 删除本地存储token
 */
export function removeToken(){
  window.localStorage.removeItem('token');
}